<script>
if (timer!=null)
	clearInterval(timer);
</script>
<?php

if (!empty($Mapsystem))
{
	//echo $Mapsystem;
	//echo $this->webroot;
	switch($Mapsystem)
	{
		case "url" :
			echo "<iframe src='".$Mapsystemparam."' width='100%' height='100%'></iframe>";
			break;
		case "images" :
		$imagepath = $this->webroot.'maps/images/'.$Mapsystemparam;
		if (file_exists(WWW_ROOT.'maps'.DS.'images'.DS.$Mapsystemparam))
			echo $this->element("mapimages");
		else
			__("Image map not found !");
			break;
		default:
			break;
	}
}
else
{
	__("No map defined !");
}
?>